package com.ocean.productDict.service.impl;

import java.util.List;

import com.ocean.productDict.domain.OProductRepairTime;
import com.ocean.productDict.mapper.OProductRepairTimeMapper;
import com.ocean.productDict.service.IOProductRepairTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ocean.common.core.text.Convert;

/**
 * 补传检查时间Service业务层处理
 *
 * @author ocean
 * @date 2023-01-11
 */
@Service
public class OProductRepairTimeServiceImpl implements IOProductRepairTimeService
{
    @Autowired
    private OProductRepairTimeMapper oProductRepairTimeMapper;

    /**
     * 查询补传检查时间
     *
     * @param id 补传检查时间主键
     * @return 补传检查时间
     */
    @Override
    public OProductRepairTime selectOProductRepairTimeById(String id)
    {
        return oProductRepairTimeMapper.selectOProductRepairTimeById(id);
    }

    /**
     * 查询补传检查时间列表
     *
     * @param oProductRepairTime 补传检查时间
     * @return 补传检查时间
     */
    @Override
    public List<OProductRepairTime> selectOProductRepairTimeList(OProductRepairTime oProductRepairTime)
    {
        return oProductRepairTimeMapper.selectOProductRepairTimeList(oProductRepairTime);
    }

    /**
     * 新增补传检查时间
     *
     * @param oProductRepairTime 补传检查时间
     * @return 结果
     */
    @Override
    public int insertOProductRepairTime(OProductRepairTime oProductRepairTime)
    {
        return oProductRepairTimeMapper.insertOProductRepairTime(oProductRepairTime);
    }

    /**
     * 修改补传检查时间
     *
     * @param oProductRepairTime 补传检查时间
     * @return 结果
     */
    @Override
    public int updateOProductRepairTime(OProductRepairTime oProductRepairTime)
    {
        return oProductRepairTimeMapper.updateOProductRepairTime(oProductRepairTime);
    }

    /**
     * 批量删除补传检查时间
     *
     * @param ids 需要删除的补传检查时间主键
     * @return 结果
     */
    @Override
    public int deleteOProductRepairTimeByIds(String ids)
    {
        return oProductRepairTimeMapper.deleteOProductRepairTimeByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除补传检查时间信息
     *
     * @param id 补传检查时间主键
     * @return 结果
     */
    @Override
    public int deleteOProductRepairTimeById(String id)
    {
        return oProductRepairTimeMapper.deleteOProductRepairTimeById(id);
    }
}
